<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>财务健康指数</title>
    <style>
        /* 设置基础字体和背景 */
        body {
            font-family: Arial, sans-serif;
            background-color: #f9f9f9;
            color: #333;
        }

        /* 页头 */
        header {
            background-color: #283593;
            color: white;
            padding: 20px 0;
            text-align: center;
        }

        /* 财务报表和健康指数的表格 */
        table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 30px;
            background-color: white;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        /* 表格头部 */
        table th {
            background-color: #3f51b5;
            color: white;
            padding: 12px;
        }

        /* 表格内容 */
        table td {
            padding: 10px;
            text-align: center;
            border: 1px solid #ddd;
        }

        /* 表格行悬停效果 */
        table tr:hover {
            background-color: #f5f5f5;
        }

        /* 页脚 */
        footer {
            background-color: #283593;
            color: white;
            padding: 10px 0;
            text-align: center;
            position: fixed;
            bottom: 0;
            width: 100%;
        }

    </style>
</head>
<body>
<header>
    <h1>财务健康指数</h1>
    <nav>
        <ul>
            <li><a href="#">返回首页</a></li>
        </ul>
    </nav>
</header>

<main class="container">
    <section id="statement">
        <h2>最新财务报表</h2>
        <table>
            <thead>
            <tr>
                <th>年度</th>
                <th>总资产</th>
                <th>总负债</th>
                <th>净利润</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>{{ statement.year }}</td>
                <td>{{ statement.total_assets }}</td>
                <td>{{ statement.total_liabilities }}</td>
                <td>{{ statement.net_profit }}</td>
            </tr>
            </tbody>
        </table>
    </section>

    <section id="health-index">
        <h2>财务健康指数</h2>
        <table>
            <thead>
            <tr>
                <th>盈利能力指数</th>
                <th>偿债能力指数</th>
                <th>运营效率指数</th>
                <th>总体健康指数</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>{{ health_index.profitability_index }}</td>
                <td>{{ health_index.solvency_index }}</td>
                <td>{{ health_index.efficiency_index }}</td>
                <td>{{ health_index.overall_health_index }}</td>
            </tr>
            </tbody>
        </table>
    </section>
</main>

<footer>
    <p>&copy; 2024 企业财务健康评估系统</p>
</footer>
</body>
</html>
